Integrand size = 18, antiderivative size = 49 \[ \int \csc (a+b x) \csc ^2(2 a+2 b x) \, dx=-\frac {3 \text {arctanh}(\cos (a+b x))}{8 b}+\frac {3 \sec (a+b x)}{8 b}-\frac {\csc ^2(a+b x) \sec (a+b x)}{8 b} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {4373, 2702, 294, 327, 213} \[ \int \csc (a+b x) \csc ^2(2 a+2 b x) \, dx=-\frac {3 \text {arctanh}(\cos (a+b x))}{8 b}+\frac {3 \sec (a+b x)}{8 b}-\frac {\csc ^2(a+b x) \sec (a+b x)}{8 b} \]
[In]
[Out]
Rule 213
Rule 294
Rule 327
Rule 2702
Rule 4373
Rubi steps \begin{align*} \text {integral}& = \frac {1}{4} \int \csc ^3(a+b x) \sec ^2(a+b x) \, dx \\ & = \frac {\text {Subst}\left (\int \frac {x^4}{\left (-1+x^2\right )^2} \, dx,x,\sec (a+b x)\right )}{4 b} \\ & = -\frac {\csc ^2(a+b x) \sec (a+b x)}{8 b}+\frac {3 \text {Subst}\left (\int \frac {x^2}{-1+x^2} \, dx,x,\sec (a+b x)\right )}{8 b} \\ & = \frac {3 \sec (a+b x)}{8 b}-\frac {\csc ^2(a+b x) \sec (a+b x)}{8 b}+\frac {3 \text {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\sec (a+b x)\right )}{8 b} \\ & = -\frac {3 \text {arctanh}(\cos (a+b x))}{8 b}+\frac {3 \sec (a+b x)}{8 b}-\frac {\csc ^2(a+b x) \sec (a+b x)}{8 b} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(143\) vs. \(2(49)=98\).
Time = 0.46 (sec) , antiderivative size = 143, normalized size of antiderivative = 2.92 \[ \int \csc (a+b x) \csc ^2(2 a+2 b x) \, dx=\frac {\csc ^4(a+b x) \left (2-6 \cos (2 (a+b x))+2 \cos (3 (a+b x))+3 \cos (3 (a+b x)) \log \left (\cos \left (\frac {1}{2} (a+b x)\right )\right )-3 \cos (3 (a+b x)) \log \left (\sin \left (\frac {1}{2} (a+b x)\right )\right )+\cos (a+b x) \left (-2-3 \log \left (\cos \left (\frac {1}{2} (a+b x)\right )\right )+3 \log \left (\sin \left (\frac {1}{2} (a+b x)\right )\right )\right )\right )}{8 b \left (\csc ^2\left (\frac {1}{2} (a+b x)\right )-\sec ^2\left (\frac {1}{2} (a+b x)\right )\right )} \]
[In]
[Out]
Time = 0.51 (sec) , antiderivative size = 53, normalized size of antiderivative = 1.08
method | result | size |
default | \(\frac {-\frac {1}{2 \sin \left (x b +a \right )^{2} \cos \left (x b +a \right )}+\frac {3}{2 \cos \left (x b +a \right )}+\frac {3 \ln \left (\csc \left (x b +a \right )-\cot \left (x b +a \right )\right )}{2}}{4 b}\) | \(53\) |
risch | \(\frac {3 \,{\mathrm e}^{5 i \left (x b +a \right )}-2 \,{\mathrm e}^{3 i \left (x b +a \right )}+3 \,{\mathrm e}^{i \left (x b +a \right )}}{4 b \left ({\mathrm e}^{2 i \left (x b +a \right )}-1\right )^{2} \left ({\mathrm e}^{2 i \left (x b +a \right )}+1\right )}+\frac {3 \ln \left ({\mathrm e}^{i \left (x b +a \right )}-1\right )}{8 b}-\frac {3 \ln \left ({\mathrm e}^{i \left (x b +a \right )}+1\right )}{8 b}\) | \(101\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 96 vs. \(2 (43) = 86\).
Time = 0.24 (sec) , antiderivative size = 96, normalized size of antiderivative = 1.96 \[ \int \csc (a+b x) \csc ^2(2 a+2 b x) \, dx=\frac {6 \, \cos \left (b x + a\right )^{2} - 3 \, {\left (\cos \left (b x + a\right )^{3} - \cos \left (b x + a\right )\right )} \log \left (\frac {1}{2} \, \cos \left (b x + a\right ) + \frac {1}{2}\right ) + 3 \, {\left (\cos \left (b x + a\right )^{3} - \cos \left (b x + a\right )\right )} \log \left (-\frac {1}{2} \, \cos \left (b x + a\right ) + \frac {1}{2}\right ) - 4}{16 \, {\left (b \cos \left (b x + a\right )^{3} - b \cos \left (b x + a\right )\right )}} \]
[In]
[Out]
\[ \int \csc (a+b x) \csc ^2(2 a+2 b x) \, dx=\int \csc {\left (a + b x \right )} \csc ^{2}{\left (2 a + 2 b x \right )}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 974 vs. \(2 (43) = 86\).
Time = 0.24 (sec) , antiderivative size = 974, normalized size of antiderivative = 19.88 \[ \int \csc (a+b x) \csc ^2(2 a+2 b x) \, dx=\text {Too large to display} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 137 vs. \(2 (43) = 86\).
Time = 0.30 (sec) , antiderivative size = 137, normalized size of antiderivative = 2.80 \[ \int \csc (a+b x) \csc ^2(2 a+2 b x) \, dx=\frac {\frac {\frac {14 \, {\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} - \frac {3 \, {\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} + 1}{\frac {\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} + \frac {{\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}}} - \frac {\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} + 6 \, \log \left (-\frac {\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1}\right )}{32 \, b} \]
[In]
[Out]
Time = 19.31 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.00 \[ \int \csc (a+b x) \csc ^2(2 a+2 b x) \, dx=-\frac {3\,\mathrm {atanh}\left (\cos \left (a+b\,x\right )\right )}{8\,b}-\frac {\frac {3\,{\cos \left (a+b\,x\right )}^2}{8}-\frac {1}{4}}{b\,\left (\cos \left (a+b\,x\right )-{\cos \left (a+b\,x\right )}^3\right )} \]
[In]
[Out]